﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Classic.Master" Inherits="ModelViewPage<EntryCreateViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Nowy wpis
    </h2>
    <% Html.BeginForm(); %>
    <fieldset class="form">
        <%=Html.IfValidationFail() %>
        <div>
            <%=this.Literal(e=>e.Visit.PatientName).Label("Pacjent:") %>
        </div>
        <div>
            <%=this.TextBox(e=>e.Entry.Reason).Label("Powód:").Id("Reason") %>
            <%=Html.ValidationMessage("Reason") %>
        </div>
        <div>
            <%=this.TextArea(e=>e.Entry.Description).Label("Opis:").Columns(50).Rows(5) %>
            <%=Html.ValidationMessage("Description") %>
        </div>
        <div>
            <%=this.TextArea(e=>e.Entry.Recommendation).Label("Zalecenia:").Columns(50).Rows(5) %>
            <%=Html.ValidationMessage("Recommendation")%>
        </div>
        <%=this.Hidden(e => e.Entry.VisitId) %>
        <%=this.Hidden(e => e.Entry.DoctorId) %>
        <div class="form-buttons">
            <%=this.SubmitButton("Ok") %>
            <%=this.ResetButton("Reset") %>
        </div>
    </fieldset>
    <% Html.EndForm(); %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>
